package com.bytedance.framwork.core.a;

import android.support.annotation.NonNull;
import android.text.TextUtils;

import com.bytedance.frameworks.core.thread.e;

import org.json.JSONObject;

import inline.NetworkDemo;

public final class a extends e {
    private final String a;
    private final JSONObject b;

    public a(String arg1, JSONObject arg2) {
        this.a = arg1;
        this.b = arg2;
    }

    public final void run() {
        try {
            c v0_1 = c.a();
            String v1 = this.a;
            JSONObject v2 = this.b;
            if(TextUtils.isEmpty(((CharSequence)v1))) {
                return;
            }

            if(v2 == null) {
                return;
            }

            if(v2.length() <= 0) {
                return;
            }

            v2.put("network_type", NetworkDemo.b(v0_1.a.getApplicationContext()).getValue());
            v2.put("timestamp", System.currentTimeMillis());
            v0_1.a(v1 + ":" + v2.toString());
        }
        catch(Throwable v0) {
        }
    }

    @Override
    public void f(@NonNull Object o) {

    }
}

